import { useWatermark } from "../../../utils/useWatermark";

export function UseWaterMarkDemo() {
  const [updateWaterMark, opts] = useWatermark({
    content: "前端辣么菜",
  });

  const change = () => {
    updateWaterMark({
      content: "前端辣么菜2",
    });
  };
  return (
    <div>
      <h1>useWaterMarkDemo</h1>
      <div>{JSON.stringify(opts)}</div>
      <button onClick={change}>切换水印</button>
    </div>
  );
}
